<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>UI插件-自动完成</title>
	</head>
	<body>
		<span>请输入：</span>
		<input id="tags"/>
		
		<script src="../jquery-1.12.4.min.js"></script>
		<script src="jquery-ui.min.js"></script>
		<script>
			//定义数组
			var arr=['java','c','javascript','android','mysql','html&css'];
			//给input元素使用自动完成插件功能
			$('#tags').autocomplete(
				{
					source:arr
				}
			);
		</script>
	</body>
</html>
